package com.ys.web.pay.model.po;

import com.ys.utils.base.j2se.Common;
import com.ys.utils.spring.config.SystemError;
import lombok.Data;

/**
 * 钱包开户bean
 */
@Data
public class WalletCreate extends PayBase {
    public String merchantUserId;
    public String name;
    public String idCardType="IDCARD";
    public String idCardNo;
    public String mobile;
    public String profession;
    public String mac;

    public void check(){
        if(!Common.isTelPhone(this.mobile)){
            SystemError.wrapBs("500","手机号输入错误");
        }
    }

    public String getMerchantUserId() {
        return merchantUserId;
    }

    public void setMerchantUserId(String merchantUserId) {
        this.merchantUserId = merchantUserId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCardType() {
        return idCardType;
    }

    public void setIdCardType(String idCardType) {
        this.idCardType = idCardType;
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getProfession() {
        return profession;
    }

    public void setProfession(String profession) {
        this.profession = profession;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }
}
